text JS屬性 語法


Posted by mijouhsieh on 2023-03-15

字串不是空白
string.trim().length > 0

輸入框節點內的值
input.value


#text-js-property-syntax #trim







Related Posts

[Week4] JS 實作串接 API(三)

[Week4] JS 實作串接 API(三)

Web開發學習筆記21 — RESTful Routes

Web開發學習筆記21 — RESTful Routes

學 JavaScript 的那些筆記 2 -- npm & jest

學 JavaScript 的那些筆記 2 -- npm & jest


Comments